import { Rule, RuleType } from '@midwayjs/decorator';
import { CreateApiPropertyDoc } from '@midwayjs/swagger';

export class userLoginDTO {
  @CreateApiPropertyDoc({ description: '用户名', example: 'username' })
  @Rule(RuleType.string().required())
  username: string;

  @CreateApiPropertyDoc({ description: '密码', example: 'password' })
  @Rule(RuleType.string().required())
  password: string;
}
